import Vue from 'vue'
import Router from 'vue-router'
import indexHome from '@/components/index/index'
import WenZhang from '@/components/xiangqing/contain.vue'
import tabList from '@/components/xiangqing/tabList/index.vue'
import details from '@/components/xiangqing/details/index.vue'
import activity from '@/components/activity/index.vue'
import game from '@/components/game/index.vue'
Vue.use(Router)

export default new Router({
  mode: 'history',
  base: '/',
  routes: [
    {
      path: '/',
      name: '首页',
      component: indexHome
    },
    {
      path: '/game',
      name: 'game',
      component: game
    },
    {
      path: '/wenZ',
      name: 'wenZ',
      children: [
        {
          path: 'tabList',
          component: tabList
        }, {
          path: 'details',
          component: details
        }
      ],
      component: WenZhang
    }, {
      path: '/activity',
      name: 'huoDong',
      component: activity
    }
  ]
})
